﻿using System;
using System.Collections.Generic;

namespace lwzlz.Application.System.Dto
{
    public class MemberOrder
    {
        public int Id { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 状态（10-待支付；20-已支付；30-待发货；40-发货成功；90-订单取消）
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 下单时间
        /// </summary>
        public DateTime OrderTime { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal TotalAmount { get; set; }
        /// <summary>
        /// 物流公司
        /// </summary>
        public string LogisticsCompany { get; set; }
        /// <summary>
        /// 物流单号
        /// </summary>
        public string LogisticsNumber { get; set; }
        /// <summary>
        /// 商品列表
        /// </summary>
        public List<MemberOrderDetail> Details { get; set; }
    }

    public class MemberOrderDetail
    {
        /// <summary>
        /// 商品Id
        /// </summary>
        public int CommodityId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string CommodityName { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public string CommodityCode { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string CategoryName { get; set; }
        /// <summary>
        /// 商品图片
        /// </summary>
        public string CommodityPic { get; set; }
        /// <summary>
        /// 商品介绍
        /// </summary>
        public string CommodityIntroduce { get; set; }
        /// <summary>
        /// 商品金额
        /// </summary>
        public decimal? CommodityMoney { get; set; }
        /// <summary>
        /// 购买数量
        /// </summary>
        public int? Number { get; set; }
        /// <summary>
        /// 合计金额
        /// </summary>
        public decimal? TotalMoney { get; set; }
    }
}
